<template>
  <NewList :news="news" />
</template>

<script setup>
import { onMounted, ref } from "vue";

import { getFinanceNews } from "@/services/apiFinanceNew.js";

import NewList from "@/ui/NewList.vue";

const news = ref([]);

onMounted(async () => {
  const financeNews = await getFinanceNews();

  news.value = financeNews;
});
</script>
